package com.akcome.apollo.domain.resultcode;

import org.common.utils.bean.ResultCode;

/**
 * 基础返回码
 * @author wn
 *
 */
public enum CommonResultCode implements ResultCode {

    /** 成功 */
    SUCCESS("200", "SUCCESS"),

    /** 系统错误 */
    SYSTEM_ERROR("500", "SYSTEM_ERROR"),
    
    /** 请求参数不完整 */
    PARAM_MISS("501", "PARAM_MISS"),
    
    /** 请求参数错误 */
    PARAM_ERROR("502", "PARAM_ERROR"),

    /** 非法请求 */
    BAD_REQUEST("503", "BAD_REQUEST"),
   
    ;
	
	
    private String errorCode;

    private String statusCode;

    CommonResultCode(String statusCode, String errorCode) {
        this.statusCode = statusCode;
        this.errorCode = errorCode;
    }

    @Override
    public String getErrorCode() {
        return errorCode;
    }

    @Override
    public String getStatusCode() {
        return statusCode;
    }
}